package com.xingchi.tornado.storage.core.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 *  视图对象
 * </p>
 *
 * @author xingchi
 * @date 2025-03-16 22:41
 */
@Data
@Schema(name = "FileChunkVO", description = "视图对象")
public class FileChunkVO {

    /**
     * id
     */
    @Schema(description = "id")
    private Long id;

    /**
     * 文件名
     */
    @Schema(description = "文件名")
    private String fileName;

    /**
     * 文件分片唯一标识
     */
    @Schema(description = "文件分片唯一标识")
    private String uid;

    /**
     * 当前分片大小
     */
    @Schema(description = "当前分片大小")
    private Long size;

    /**
     * 分片序号
     */
    @Schema(description = "分片序号")
    private Integer chunk;

    /**
     * 总分片数
     */
    @Schema(description = "总分片数")
    private Integer totalChunks;

    /**
     * 分片文件存储路径
     */
    @Schema(description = "分片文件存储路径")
    private String chunkPath;

    /**
     * 上传原文件唯一标识
     */
    @Schema(description = "上传原文件唯一标识")
    private String sha256;

    /**
     * 删除标记：0、未删除；1、已删除
     */
    @Schema(description = "删除标记：0、未删除；1、已删除")
    private Integer deleted;

    /**
     * createTime
     */
    @Schema(description = "")
    private LocalDateTime createTime;

    /**
     * updateTime
     */
    @Schema(description = "")
    private LocalDateTime updateTime;

}
